texture: Rework error enum
authorBenjamin Otte <otte@redhat.com>
Fri, 17 Sep 2021 01:25:35 +0000 (03:25 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 17 Sep 2021 01:25:35 +0000 (03:25 +0200)
commitb271a94f927c2b7b0c42e58be61d6fdb44480b99
tree87ffb6d7c756db037d05bbf67bd3a2e5a873a8cd
parente58f70d7bb5990bfc8a7364c7f4e5af586e43750
texture: Rework error enum

1. Change INSUFFICIENT_MEMORY to TOO_LARGE
   GTK crashes on insufficient memory, we don't emit GErrors.

2. Split UNSUPPORTED into UNSUPPORTED_CONTENT and UNSUPPORTED_FORMAT
   So we know if you need to find an RPM with a loader or curse and
   the weird file.

3. Translate error messages, they are meant for end users.
gdk/gdktexture.h
gdk/loaders/gdkjpeg.c
gdk/loaders/gdkpng.c
gdk/loaders/gdktiff.c